package com.rpc.core.holder.rag;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public class RegInfoHolder {

   private List<RegInfoEnhancer> enInfos=new CopyOnWriteArrayList<>();

    public List<RegInfoEnhancer> getEnInfos() {
        return enInfos;
    }

    public void setEnInfos(List<RegInfoEnhancer> enInfos) {
        this.enInfos = enInfos;
    }

    public void close(){
        enInfos.forEach(RegInfoEnhancer::close);
    }


}
